Dear All, |
Re: Reconfirm Password |
Re: Reconfirm Password SystemAdmin - Wed Jan 27 09:21:20 EST 2010 Yeah, the confirm password dialog. Possible? Thanks & Regards Irfan |
Re: Reconfirm Password Irfan_Jamal - Wed Jan 27 22:46:13 EST 2010
Now that was new to me as well:
bool bPasswordOK = false, bCompleted = false
// query user
bPasswordOK = confirmPasswordDialog(dbExplorer, bCompleted)
// check status
if (bCompleted == true)
{print (bPasswordOK ? "Correct" : "Wrong") "\n"}
|
Re: Reconfirm Password Peter_Albert - Thu Jan 28 03:35:10 EST 2010
Now that was new to me as well:
bool bPasswordOK = false, bCompleted = false
// query user
bPasswordOK = confirmPasswordDialog(dbExplorer, bCompleted)
// check status
if (bCompleted == true)
{print (bPasswordOK ? "Correct" : "Wrong") "\n"}
This is a nice solution. Thanks for this. But, this doesnt solve my purpose. I want to create a GUI like confirmPasswordDialog so that I can perform the following
My main motive is to read the user password and verify it. In the code snippet you had provided, I am only able to verify the password. I would also like to read it. Thanks & Regards Irfan |
Re: Reconfirm Password Irfan_Jamal - Thu Jan 28 04:12:05 EST 2010
My main motive is to read the user password and verify it. In the code snippet you had provided, I am only able to verify the password. I would also like to read it. Thanks & Regards Irfan in your other thread, you already got the answer that the password is a write-only password. You cannot read it, now way. Verifying user input as described is the closest you can get. If you want to not only get the confirmation that the user knows his / her password, but in addition want to use the password, you would have to know the internal DBE variable name of the text field in the confirmPasswordDialog. Even then I would guess that the content you could get from it using the string get(DBE textDBE) perm would be "*****", hence not useful for your task. You could put it the other way round, using a second textDBE where the user types his password, then you set the confirmPasswordDialog. But that would mean that the password is clearly readable on the screen, Also not what you want. Catch 22. Sorry for that, Peter |